const express = require('express')
const router = express.Router()

// 用户路由
// 添加请求路径,后面就不需要再添加了
router.use('/user', require('./user'))

// 文章相关路由
router.use('/articles', require('./article'))

// 频道相关路由
router.use('/channel', require('./channel'))

// 文章评论相关路由
router.use('/comments', require('./comments'))

// 上传相关路由
router.use('/upload', require('./upload'))

// 搜索相关路由
router.use('/search', require('./search'))

// 粉丝相关
router.use('/fans', require('./fans'))

module.exports = router
